from nevow import loaders, tags
from nevow.livetrial import testcase

from stickies import templates
from stickies import widgets
from stickies import pages

class OurFirstTest(testcase.TestCase):
    jsClass = u'Tests.OurFirstTest'
    docFactory = loaders.xmlfile(
        templateDir=templates.template_dir,
        template="test_stickies.html",
        )
                                 
    def render_myElement(self, ctx, data):
        widget = widgets.board()
        widget.setFragmentParent(self)
        return ctx.tag[widget]

